<?php

use yii\db\Migration;
use yii\db\Schema;

class m170120_061811_EDIT_ORDER_FLIGHT_FIELD extends Migration
{
    public function up()
    {

         $this->addColumn('{{order_flight}}', 'flight_id', Schema::TYPE_INTEGER. "(11)  DEFAULT '0' COMMENT '机票产品编号' ");
         $this->dropColumn('{{order_flight}}', 'room_id');
    }

    public function down()
    {
        echo "m170120_061811_EDIT_ORDER_FLIGHT_FIELD cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
